/**
 * 
 */
package cn.ad.server.web.spring.model;

/**
 * 获取转发信息
 * @author wangwei
 */
public class BaseTransmitInfo implements ITransmitInfo {
	
	/**
	 * android平台设备唯一标识android_id。
	 */
	private String android_id = "";
	/**
	 * android平台设备唯一标识advertising_id。
	 */
	private String advertising_id = "";
	/**
	 * ios平台设备唯一标识。
	 */
	private String idfa = "";
	
	/**
	 * 设备：mac
	 */
	private String mac = "";
	
	/**
	 * 设备：imei
	 */
	private String imei = "";

	/**
	 * 订单标识。
	 */
	private String cid = "";
		
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getImei() {
		return imei;
	}




	public void setImei(String imei) {
		this.imei = imei;
	}




	public String getAndroid_id() {
		return android_id;
	}




	public void setAndroid_id(String android_id) {
		this.android_id = android_id;
	}




	public String getAdvertising_id() {
		return advertising_id;
	}




	public void setAdvertising_id(String advertising_id) {
		this.advertising_id = advertising_id;
	}




	public String getIdfa() {
		return idfa;
	}




	public void setIdfa(String idfa) {
		this.idfa = idfa;
	}




	public String getCid() {
		return cid;
	}


	public void setCid(String cid) {
		this.cid = cid;
	}

	@Override
	public String toString() {
		return "BaseTransmitInfo [android_id=" + android_id + ", advertising_id=" + advertising_id + ", idfa=" + idfa
				+ ", mac=" + mac + ", imei=" + imei + ", cid=" + cid + "]";
	}
 
	/**
	 * 返回转发信息
	 * @return
	 */
	public String getTransmitInfo(){
		StringBuilder builder = new StringBuilder("android_id=");
		builder.append(android_id)
		.append("&advertising_id=")
		.append(advertising_id)
		.append("&idfa=")
		.append(idfa)
		.append("&mac=")
		.append(mac)
		.append("&imei=")
		.append(imei)
		.append("&cid=")
		.append(cid);
		return builder.toString();
	}
	
	
}
